//Wednesday, November 25 2009
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>

using namespace std;

class ToolsBox
{
public:
	int countTools(vector <string> need)
	{
		set<string> v;
		v.clear();
		for(int i=0; i<need.size(); i++)
		{
			stringstream s(need[i]);
			string str;
			while(s >> str)
			{
				v.insert(str);
			}
		}
		return v.size();
	}
};
